<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Vue实例代理了data对象上所有的属性</title>
    <!--引入Vue库-->
    <script src="vue.js"></script>
  </head>
  <body>
    <div id="app">{{ message }}</div>
    <script>
      var value = { message: "请登录!" };
      var vm = new Vue({
        el: "#app",
        data: value,
      });
      console.log(vm.$data === value); //true
    </script>
  </body>
</html>
